
#ifndef __ANIMINFO_H
#define __ANIMINFO_H

#include "CBase.h"

class AnimInfo
{
private:
	int currentAnim;
	int currentFrame;
	float m_fElapsedTime;
	bool m_bFinished;
	CBase* m_pOwner;
public:

	AnimInfo()
	{
		currentAnim = 0;
		currentFrame = 0;
		m_fElapsedTime = 0.0f;
		m_bFinished = false;
		m_pOwner = NULL;
	}

	int GetCurAnim() {return currentAnim;}
	int& GetCurFrame() {return currentFrame;}
	bool GetFinished()	{return m_bFinished;}
	float GetElapsedTime() {return m_fElapsedTime;}
	CBase* GetOwner() {return m_pOwner;}

	void SetCurAnim(int CurAnim) {currentAnim = CurAnim;}
	void SetCurFrame(int CurFrame) {currentFrame = CurFrame;}
	void SetFinished(bool finished) {m_bFinished = finished;}
	void SetElapsedTime(float fElapsedTime) {m_fElapsedTime = fElapsedTime;}
	void SetOwner(CBase* pOwner) {m_pOwner = pOwner;}
};


#endif